package com.aizhixin.lab.course.course.repository;

import com.aizhixin.lab.course.course.entity.CourseLike;
import org.springframework.data.jpa.repository.JpaRepository;

public interface CourseLikeRepository extends JpaRepository<CourseLike, Long> {
    CourseLike findByCourseIdAndCreatedBy(String courseId,Long createdBy);
    Integer countByCourseId(String courseId);
}
